package com.wasp.collector.service.chain;

import java.util.List;

import com.wasp.collector.dao.IDao;
import com.wasp.collector.data.BaseModel;

public class DBHandleChain extends AbstractHandleChain{
	public DBHandleChain(){
	}
	@Override
	protected void realHandleRequest() {
		List<? extends BaseModel> list = this.needHandleData;
		if(list == null || list.isEmpty()){
			return;
		}
		list.stream().forEach(item->item.generate().saveModel(item));
	}
    
}